public class TestThread1 extends Thread{
    @Override
    public void run() {
        for (int i=0;i<20;i++){
            System.out.println("这是第 "+i+" 次");
        }
    }

    public static void main(String[] args) {
        TestThread1 ts1 = new TestThread1();
        TestThread1 ts2 = new TestThread1();
        ts1.run();
        ts2.run();
//        ts1.start();
//        ts2.start();
    }
}
